<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
	<%
	String userType = (String)session.getAttribute("type");
	if(userType == null || userType.equals("")) {
	%>
		<div id="login">
		<form name="Login" action="/ProgettoWeb/HomePage.html" method="POST">
			<div id="subHeader"><input type="submit" value="login"></div>
			<div id="subHeader"><INPUT id="password" name="password" type="password" value="" size="20"></div>
			<div id="subHeader"><INPUT id="email" name="email" value=""  size="20"></div>
		</form>
		</div>
	<%
	} else { 
		if(userType.equals("utente")) {
	%>		
		<ul>
			<li><a href="/ProgettoWeb/ManageAbilitiesForUser.html">Abilit&agrave</a></li>
			<li><a href="/ProgettoWeb/FriendsList.html">Lista amici</a></li>
			<li><a href="/ProgettoWeb/showHelps.html">Aiuti</a></li>
			<li><a href="/ProgettoWeb/ModificaProfilo.html">Modifica Profilo</a></li>
		</ul>
	<%
		} else {
	%>
		<ul>
			<li><a href="/ProgettoWeb/ShowAllUsers.html">Tutti gli Utenti</a></li>
			<li><a href="/ProgettoWeb/ManageAbility.html">Gestisci Abilit&agrave</a></li>
			<li><a href="/ProgettoWeb/AnswerRequestedAbility.html">Richieste Abilit&agrave</a></li>
			<li><a href="/ProgettoWeb/ModificaProfilo.html">Modifica Profilo</a></li>
		</ul>
	<%
		}
	}
	%>
</body>
</html>